[%if count($array)>0 || count($array_top)>0 %]
<table class="table table-hover">
	<thead>
		<tr class="bg_feishe kill_copy">
			<th class="text-center table_width_60">[%pack:public_pack-espcms_lable_select_name%]</th>
			<th class="text-center table_width_100 sort_field" sort-field="mid">[%pack:public_pack-espcms_lable_id_name%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_model_modelname%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_model_lockin%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_model_isbase%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_model_istsn%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_model_isalbum%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_model_isques%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_model_isfgid%]</th>
			<th class="text-center">[%pack:public_pack-espcms_lable_isclass_name%]</th>
			[%if @this->power('listArticleModelFields') || @this->power('editArticleModel')%]
			<th class="text-center table_width_150">[%pack:public_pack-espcms_lable_control_name%]</th>
			[%/if%]
		</tr>
	</thead>
	<tbody>
		[%forlist from=$array key=i%]
		<tr data-id="[%$array[i].mid%]" class="selecticon">
			<td class="text-center">
				[%if $array[i].lockin%]
				<input type="checkbox" name="select_id" class="select_id" value="[%$array[i].mid%]"/>
				[%else%]
				<input type="checkbox" name="select_id" class="select_id" value="0" disabled/>
				[%/if%]
			</td>
			<td class="text-center">[%$array[i].mid%]</td>
			<td class="text-center">[%$array[i].modelname%]</td>
			<td class="text-center">
				[%if $array[i].lockin==1%]
				<span class="text-green">[%pack:article_pack-espcms_article_model_lockin_1%]</span>
				[%else%]
				<span class="text-orange">[%pack:article_pack-espcms_article_model_lockin_0%]</span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].isbase==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].istsn==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].isalbum==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].isques==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].isfgid==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].isclass==1%]
				<span class="espcms_icon_fa espcms_icon_fa-unlock-alt text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-lock text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			[%if @this->power('listArticleModelFields') || @this->power('editArticleModel')%]
			<td class="text-center kill_copy">
				[%if @this->power('listArticleModelFields')%]
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-database" tab_name="[%$array[i].modelname%][%pack:article_pack-espcms_article_model_attr_button_manage%]" tab_url="[%$array[i].attrlist%]">[%pack:article_pack-espcms_article_model_attr_button_manage%]</button>
				[%/if%]
				[%if @this->power('editArticleModel')%]
				<button type="button" class="btn btn-orange btn-padding20 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:article_pack-espcms_article_model_button_edit%]" tab_close="false" tab_url="[%$array[i].edit%]">[%pack:botton_pack-espcms_botton_modify%]</button>
				[%/if%]
			</td>
			[%/if%]
		</tr>
		[%/forlist%]
	</tbody>
</table>
[%else%]
<table class="table table-hover" id="tablelist">
	<tbody>
		<tr class="selecticon">
			<td class="text-center bort0" colspan="20">[%pack:public_pack-espcms_no_infomessage%]</td>
		</tr>
	</tbody>
</table>
[%/if%]